﻿using System;
using System.Linq;
using XEvolve.Core.Runtime.Internal;

namespace XEvolve.Core.Runtime.PluginProviders
{
    public class PluginList : IPluginProvider
    {
        public PluginList(params Type[] plugins)
        {
            Plugins = plugins.Where(plugin => plugin.IsPluginType()).ToArray();
        }

        public Type[] Plugins { get; private set; }
    }
}
